// pages/IsDelegate/IsDelegate.js
let httpRequest = require('../../utils/http_utils.js')
let regeneratorRuntime = require('../../utils/runtime.js');
let utils = require('../../utils/util')
let CryptoJS = require('../../utils/aes_util.js') //参数加密
let dateutil = require('../../utils/date_util.js')


Page({

  /**
   * 页面的初始数据
   */
  data: {
    title: '共享',
    url:""
  },

  fzboad: function (e) {
    let url = e.currentTarget.dataset.url;
    wx.setClipboardData({
      data: url,
      success(res) {
        wx.getClipboardData({
          success(res) {
            console.log(res.data) // data
          }
        })
      }
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let TaskGuid = options.TaskGuid;
    let EquipmentName = options.EquipmentName;
    let EquipmentLocation = options.EquipmentLocation;
    let TaskBeginTime = options.TaskBeginTime;
    let TaskEndTime = options.TaskEndTime;
    let recordpeople = wx.getStorageSync("UserInfo").AppLogin.DisplayName;
    let Recorder = wx.getStorageSync("UserInfo").AppLogin.RowGuid;
    let TaskState = options.TaskState;
    this.setData({
      url: 'https://lansheng-uat.njrgrj.com/LanShengDaShaWwdwWeb?TaskGuid=' + TaskGuid + "&EquipmentName=" + EquipmentName + "&EquipmentLocation=" + EquipmentLocation + "&TaskBeginTime=" + TaskBeginTime + "&TaskEndTime=" + TaskEndTime + "&recordpeople=" + recordpeople + "&Recorder=" + Recorder
    })


  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})